import { createApp } from 'vue'
import App from './App.vue'

/* 全局样式 */
import './style.css'

/* 字体 */
import '@/assets/fonts/font.css';

/* 路由 */
import router from './router'

/* 状态管理 */
import { createPinia } from 'pinia'
/* pinia持久化存储 */
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

/* ElementPlus */
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
/* ElementPlus-图标 */
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)
const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.use(pinia)
app.use(router)
app.use(ElementPlus)
app.mount('#app')